<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%
	pageContext.setAttribute("APP_PATH", request.getContextPath());
%>
<script type="text/javascript" src="${APP_PATH}/js/jquery-1.42.min.js"></script>
    <link rel="stylesheet" href="${APP_PATH}/css/bootstrap.min.css" type="text/css"/>
    <link href="${APP_PATH}/css/reg.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="${APP_PATH}/css/base.css" type="text/css"/>
    <link rel="stylesheet" href="${APP_PATH}/css/headbott.css" type="text/css"/>
    <link rel="stylesheet" href="${APP_PATH}/css/index.css" type="text/css"/>
    <link rel="stylesheet" href="${APP_PATH}/css/ly-list.css" type="text/css"/>
    <link rel="stylesheet" href="${APP_PATH}/css/reg.css" type="text/css"/>
<title>发布项目</title>
<script type="text/javascript">
$(document).ready(function(){
	//alert(${users.usId});
});
</script>
</head>
<body>
<!--上部导航栏开始-->
<div id="header">
    <div class="heade-con">
        <div class="logo"><a href=""><img src="images/LOGO.png"/></a></div>
        <div class="nav posa">
            <ul>
               <li><a class="vcolor" href="index.html">首页</a></li>
                <li><a href="gyzc-list.html">公益众筹</a></li>
                <li><a href="cop.html">常见问题</a></li>
                <li><a href="ly-list.html">众筹资讯</a></li>
                <li><a href="basicInfo.jsp" style="">发布项目</a></li>
            </ul>
        </div>
        <div class="search">
            <form action="#">
                <input type="text" class="search-txt" value="找项目">
                <input type="submit" class="search-but" value="">
            </form>
        </div>
        <div class="index-login">
            <a class="index-login1" href="">登录</a>
            <a href="">注册</a>
        </div>
    </div>
</div>
<!--上不导航栏结束-->
<!--中间核心-->
<div class="product">
    <!--头上表格-->
    <div class="product-table">
        <div class="product-left">
            <table class="table table-bordered">
                <tr class="text-center">
                    <td class="title-td"><a href="basicInfo.jsp">基本信息</a></td>
                    <td class="title-td"><a href="product-info.jsp">项目信息</a></td>
                    <td class="title-td"><a href="prodetaile.jsp">详细描述</a></td>
                    <td class="active title-td"><a href="repay.jsp">回报设置</a></td>
                </tr>
            </table>
        </div>
    </div>
    <!--下部foem表单-->
    <div class="product-form">
        <!--上标题-->
        <div class="product-title">
            <div class="my-h4">
                <h4>设置回报信息</h4>
            </div>
            <!-- <div class="btn-save">
                <button class="btn btn-default" id="repay-save-btn">保存草稿</button>
            </div> -->
        </div>
        <div class="clear"></div>
        <hr><br>
        <div class="my-h4">
                <h4>回报</h4>
            </div>
            <br>
            <br>
        <!--表单-->
        
        <form action="#"  method="post">
            <div class="my-form">
            <div class="product-info-input"><b>支付金额：</b><input class="text" id="repay-money" type="text" placeholder="输入你需要的金额，最少500元">元</div>
            <div class="product-info-input"><b>具体规则：</b><input class="text" id="repay-rule" type="text" placeholder="几个支持者奖励一个人"></div>
            <div class="product-info-input"><b>奖品内容：</b><textarea rows="2" id="repay-content" placeholder="奖品内容"></textarea></div>
            <div class="product-info-input"><b>人数上限：</b><input class="text" id="repay-number" type="text" placeholder="  0为不设人数限额">个</div>
            <div class="product-info-input"><b>发奖时间：</b><input class="text" id="repay-time" type="text" placeholder="  0为开奖立即发送">天  </div>
            <div class="btn-save">
                <button class="btn btn-default" id="repay-save-btn">发布项目</button>
            </div>
            </div>
        </form>
    </div>
</div>
<!--底部开始-->
<div id="bottom">
    <div class="bottom-ggt"><a href=""><img src="images/bottbom_68.jpg" alt=""/></a></div>
    <div class="zc-yqlink">
        <ul>
            <li><a href="">阿里巴巴集团</a></li>
            <li><a href="">淘宝网</a></li>
            <li><a href="">天猫</a></li>
            <li><a href="">聚划算</a></li>
            <li><a href="">全球速卖通</a></li>
            <li><a href="">阿里巴巴国际交易市场</a></li>
            <li><a href="">1688</a></li>
            <li><a href="">阿里妈妈</a></li>
            <li><a href="">阿里旅行</a></li>
            <li><a href="">阿里云计算</a></li>
            <li><a href="">阿里巴巴集团</a></li>
            <li><a href="">淘宝网</a></li>
            <li><a href="">天猫</a></li>
            <li><a href="">聚划算</a></li>
            <li><a href="">全球速卖通</a></li>
            <li><a href="">阿里巴巴国际交易市场</a></li>
            <li><a href="">1688</a></li>
            <li><a href="">阿里妈妈</a></li>
            <li><a href="">阿里云计算</a></li>
        </ul>
    </div>
    <div class="footer-bd">

        <a href=" ">关于淘宝</a>
        <a href=" ">合作伙伴</a>
        <a href=" ">营销中心</a>
        <a href=" ">廉正举报</a>
        <a href=" ">联系客服</a>
        <a href=" ">开放平台</a>
        <a href=" ">诚征英才</a>
        <a href=" ">联系我们</a>
        <a href=" ">网站地图</a>
        <a href=" ">法律声明</a>　　　
        <em>© 2003-2015 Taobao.com 版权所有</em><br>

        <br>
        <span>网络文化经营许可证：<a href=" ">浙网文[2013]0268-027号</a></span>
        <b>|</b>
        <span data-spm-protocol="i">增值电信业务经营许可证：<a href="">浙B2-20080224-1</a></span>
        <b>|</b>
        <span>信息网络传播视听节目许可证：1109364号</span>
        <b>|</b>
        <span>举报电话:0571-81683755</span>
    </div>
</div>
<script type="text/javascript">
   //插入回报表
   $(function(){
	   $("#repay-save-btn").click(function(usId){
       var money=$("#repay-money").val();
       var rule=$("#repay-rule").val();
       var content=$("#repay-content").val();
       var number=$("#repay-number").val();
       var time=$("#repay-time").val();
       /* "usId="+usId+"$"+ */
       <%-- <%
       String users = request.getParameter("users");
       request.setAttribute("users", users);
       %> --%>
       var da="ryPaymoney="+money+"&"+"ryRule="+rule+"&"+"ryContent="+content+"&"+"ryNumber="+number+"&"+"ryTime="+time;
       alert(da);
       alert(usId);
		   $.ajax({
			  url: "${APP_PATH}/insertRepay",
			  type: "post",
			  data: da,
              success: function (result){
					alert(result.msg);
				}
		   });
		   
	   });
	   
   });

   //插入项目表
   function insertRepay(){
	   
   }


</script>
</body>
</html>